<?php
require('../database/db.php');
$mysql=new mysql();

// 需传参数
$fenleiid=$_REQUEST[fenleiid];
// 需传参数 end
if ($fenleiid!='') {
	$sql="select * from zifenlei where fenleiid=".$fenleiid;
	$zifenlei=$mysql->getAll($sql);
	$arr = array('code' => 100, 'tip' =>'查询成功' ,'zifenlei' =>$zifenlei);
}else{
	$arr = array('code' => 200, 'tip' =>'参数传入有误');
}
echo json_encode($arr);
?>